<script setup lang="ts">
import { computed } from "vue";
import { ElMenuItem, ElMenu } from "element-plus";
import { useRoute } from "vue-router";
const route = useRoute();
const routePath = computed(() => route.path);
</script>

<template>
  <el-menu
    :default-active="routePath"
    class="el-menu-demo"
    mode="horizontal"
    router
  >
    <el-menu-item index="/">流程列表</el-menu-item>
    <el-menu-item index="/sponsor">发起人</el-menu-item>
    <el-menu-item index="/director">主管</el-menu-item>
    <el-menu-item index="/manager">经理</el-menu-item>
  </el-menu>
  <div>
    <router-view></router-view>
  </div>
</template>

<style scoped></style>
